package io.ooad.banking.dd.domain;

import java.io.Serializable;
import java.util.List;

/**
 * Created by yyang on 16/9/16.
 */
public class AccountTransactionDetails implements Serializable {

    private BankAccount account;

    private Money currentBalance;

    private Money availableBalance;

    private List<AccountTransaction> transactions;

    private AccountTransactionDetails(BankAccount account) {
        this.account = account;
    }

    public static AccountTransactionDetails of(BankAccount account) {
        return new AccountTransactionDetails(account);
    }
}
